﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zor_DAL;

namespace Zor_Bll
{
    public class PrayWarn_Bll<T> where T : class
    {
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="index">页码</param>
        /// <param name="TotalCount">返回值</param>
        /// <returns></returns>
        public static List<T> GetPageList(int index, out int TotalCount, string where)
        {
            return PagerHelp<T>.GetPagerList(index, "V_PrayWarn", "Bd_Name", out TotalCount,where);
        }

        /// <summary>
        /// 获取租赁管理列表（不分页）
        /// create 刘云飞 by 2017/04/06       
        /// </summary>
        /// <returns></returns>
        public static List<T> GetList(string where)
        {
            return PrayWarn_DAL<T>.SelectViewPrayWarn(where);
        }
    }
}
